package org.textreport.core;

public class SQLUtils {
	public static boolean sqlOpen(SQLType sql, ExecutionContext ectx) {
		for (String p : sql.extractParams()) {
			if(ectx.variableIsDefined(p)){
				sql.setParam(p, ectx.getVariable(p));
			}
		}

		return sql.open();
	}

}
